﻿using SCM.Common;
using SqlSugar;
using System;

namespace SCM.Model.DBEntity
{
    /// <summary>
    /// MCD表
    /// </summary>
    [SugarTable("T_Material_MCD")]
    public class T_Material_MCD :EntityBase
    {
        /// <summary>
        /// MCD ID
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 所属企业ID
        /// </summary>
        public string CompanyID { get; set; }

        /// <summary>
        /// MCD类型
        /// </summary>
        public MCDTypeEnum MCDType { get; set; }

        /// <summary>
        /// MCD类型
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string MCDTypeStr { get { return EnumHelper.GetDescription(MCDType); }}

        /// <summary>
        /// 产品或零件ID
        /// </summary>
        public string BusinessID { get; set; }

        /// <summary>
        /// 产品或零件重量
        /// </summary>
        public decimal BusinessWeight { get; set; }

        /// <summary>
        /// 产品或零件单位
        /// </summary>
        public string BusinessUOM { get; set; }
    }
}